import 'package:flutter/cupertino.dart';

import '../utils/tools/localstorage_tool.dart';

class FontScale with ChangeNotifier {
  // 字体比例
  double scale;

  FontScale({ double scale = 1.0 }) {
    this.scale = scale;
  }

  void setting(double scale) {
    this.scale = scale;

    // 存储字体比例信息
    LocalStorage.setDouble("FontScale", scale);

    notifyListeners();
  }

}